import { get,post } from "../request";
// 列表
export interface Complaintlist {
  key: String;
  begindate: String;
  enddate: String;
  page: Number;
  psize: Number;
}
const getlist = (data: Complaintlist) => {
  return get("questions/list", data);
};
// 删除
 interface Complaintdetails {
  id: number;
}
const getDelete = (data: Complaintdetails) => {
  return get("questions/delete", data);
};
// 批量删除
interface ComplaintdeleAll {
  ids: any;
}
const getDeleteAll = (data: ComplaintdeleAll) => {
  return post("questions/deleteall", data);
};
//下拉
const getlidrop=()=>{
  return get('questionstate/list')
}
//下拉类型
const gettype=()=>{
  return get('questiontype/list')
}
export { getlist, getDelete,getlidrop,gettype,getDeleteAll };
